package gtkwire.widget.utils;

/**
*Describes a type of line wrapping.
*Documentation for this class is from the gtk+ file that this class binds to. See original file for copyrights.
*/
public class GtkWrapMode
{
	/**
	*Do not wrap lines; just make the text area wider.
	*/
	public static final GtkWrapMode NONE = new GtkWrapMode( "GTK_WRAP_NONE" );
	/**
	*Wrap text, breaking lines anywhere the cursor can appear.
	*/
	public static final GtkWrapMode CHAR = new GtkWrapMode( "GTK_WRAP_CHAR" );
	/**
	*Wrap text, breaking lines in between words.
	*/
	public static final GtkWrapMode WORD = new GtkWrapMode( "GTK_WRAP_WORD" );
	/**
	*Wrap text, breaking lines in between words, or if that is not enough, also between graphemes.
	*/
	public static final GtkWrapMode WORD_CHAR = new GtkWrapMode( "GTK_WRAP_WORD_CHAR" );

	private String mode;

	private GtkWrapMode( String mode )
	{
		this.mode = mode;
	}

	public String getMode(){ return mode; }

}//end class
